//
//  QAIMModel.m
//  AFNetworking
//
//  Created by 范浩云 on 2018/3/14.
//

#import "QAIMModel.h"

@implementation QAIMModel

+ (instancetype)fromJSONDictionary:(NSDictionary *)JSONDictionary
{
    return [[self class] yy_modelWithDictionary:JSONDictionary];
}
    
+ (NSArray *)fromJSONArray:(NSArray *)JSONArray{
    
    return [NSArray yy_modelArrayWithClass:[self class] json:JSONArray];
}
    
- (void)encodeWithCoder:(NSCoder *)aCoder {
    [self yy_modelEncodeWithCoder:aCoder];
}
    
- (id)initWithCoder:(NSCoder *)aDecoder {
    self = [super init]; return [self yy_modelInitWithCoder:aDecoder];
}
    
- (id)copyWithZone:(NSZone *)zone { return [self yy_modelCopy]; }
    
- (NSUInteger)hash {
    return [self yy_modelHash];
}
    
- (BOOL)isEqual:(id)object {
    return [self yy_modelIsEqual:object];
}
    
- (NSString *)description {
    return [self yy_modelDescription];
}
    
@end
